package com.example.android.story.Utils;

import java.util.List;

/**
 * Created by android on 18-5-19.
 */

public interface Database {
    User getUser(String username);
    List<User> getAllUsers();
    Actor getActor(String name);
    List<Actor> getActors();
    Story getStory(String title);
    List<Story> getStorys();

    void insertUser(User user);
    void insertActor(Actor actor);
    void insertStory(Story story);

    void eraseUser(User user);
    void eraseActor(Actor actor);
    void eraseStory(Story story);

    UserDao userDao();
    ActorDao actorDao();
    StoryDao storyDao();
}
